Skip to content

API-1835: wires event handlers for informers - #7559

Closed
p0lyn0mial wants to merge 6 commits into
openshift:mainfrom
p0lyn0mial:om-phase-2-inf-event-handlers
Closed

API-1835: wires event handlers for informers#7559
p0lyn0mial wants to merge 6 commits into
openshift:mainfrom
p0lyn0mial:om-phase-2-inf-event-handlers

Conversation

@p0lyn0mial

Copy link
Copy Markdown
Contributor

requires #7477 , #7477 and #7543

please review feat(openshiftmanager-phase2): wire event handlers for informers only

Adds an input resource initializer runnable for OpenShiftManager that discovers
input resources and wires informers, and registers it in the controller setup.

Notes: discovery is still a stub and we still need to register informer handlers and add filtering.
inputResourceDispatcher is a simple dispatcher that applies GVK scoped filters
and forwards matching events.

Each GVK has its own set of filters. Today these
may include name/namespace checks, and in the future label selectors.

Longer term, this dispatcher is expected to track which input resources are
associated with which operator.
prepares matchers to filter cluster(s) resources based on inputResources
refactors tests so that they use a common function for getting a RESTMapper
registers an event handler for an informer per gvk and
passed evnents to the event dispatcher
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jan 21, 2026
@openshift-ci-robot

openshift-ci-robot commented Jan 21, 2026

Copy link
Copy Markdown

@p0lyn0mial: This pull request references API-1835 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the epic to target the "4.22.0" version, but no target version was set.

Details

In response to this:

requires #7477 , #7477 and #7543

please review feat(openshiftmanager-phase2): wire event handlers for informers only

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 21, 2026
@coderabbitai

coderabbitai Bot commented Jan 21, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Review skipped — only excluded labels are configured. (1)
  • do-not-merge/work-in-progress

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 21, 2026
@openshift-ci

openshift-ci Bot commented Jan 21, 2026

Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-merge-robot

Copy link
Copy Markdown
Contributor

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@p0lyn0mial

Copy link
Copy Markdown
Contributor Author

/assign @benluddy @bertinatto @csrwng

@openshift-ci openshift-ci Bot added the area/control-plane-operator Indicates the PR includes changes for the control plane operator - in an OCP release label Jan 21, 2026
@openshift-ci

openshift-ci Bot commented Jan 21, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: p0lyn0mial
Once this PR has been reviewed and has the lgtm label, please assign devguyio for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-bot

Copy link
Copy Markdown

Stale PRs are closed after 21d of inactivity.

If this PR is still relevant, comment to refresh it or remove the stale label.
Mark the PR as fresh by commenting /remove-lifecycle stale.

If this PR is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci Bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 17, 2026
@openshift-bot

Copy link
Copy Markdown

Stale PRs rot after 14d of inactivity.

Mark the PR as fresh by commenting /remove-lifecycle rotten.
Rotten PRs close after an additional 7d of inactivity.

If this PR is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci Bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels May 2, 2026
@openshift-ci

openshift-ci Bot commented May 11, 2026

Copy link
Copy Markdown
Contributor

@p0lyn0mial: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/unit 9b5be46 link true /test unit
ci/prow/e2e-azure-self-managed 9b5be46 link true /test e2e-azure-self-managed
ci/prow/verify-workflows 9b5be46 link true /test verify-workflows
ci/prow/security 9b5be46 link true /test security

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@hypershift-jira-solve-ci

hypershift-jira-solve-ci Bot commented May 11, 2026

Copy link
Copy Markdown
Contributor

Test Failure Analysis Complete

Job Information

Test Failure Analysis

Error

Auto-merging control-plane-operator/controllers/openshiftmanager/input_resource_initializer.go
CONFLICT (add/add): Merge conflict in control-plane-operator/controllers/openshiftmanager/input_resource_initializer.go
Auto-merging control-plane-operator/controllers/openshiftmanager/input_resource_initializer_test.go
CONFLICT (add/add): Merge conflict in control-plane-operator/controllers/openshiftmanager/input_resource_initializer_test.go
Auto-merging go.mod
CONFLICT (content): Merge conflict in go.mod
Auto-merging go.sum
CONFLICT (content): Merge conflict in go.sum
Auto-merging vendor/modules.txt
CONFLICT (content): Merge conflict in vendor/modules.txt
Automatic merge failed; fix conflicts and then commit the result.

Summary

The security job failed during the git clone/merge phase before any CI steps or tests executed. Prow attempted to merge PR #7559 (commit 9b5be46) into the main branch (at f16ca0d) and encountered add/add and content merge conflicts in 5 files. Because the merge could not be completed, the job exited immediately with no final SHA produced and 0 seconds of runtime. No security scan or test was ever run.

Root Cause

The PR branch (9b5be46) has diverged from the current main branch (f16ca0d) and both sides have introduced conflicting changes in the same files. Specifically:

  1. control-plane-operator/controllers/openshiftmanager/input_resource_initializer.goadd/add conflict: Both the PR and a recently-merged commit on main (likely PR NO-JIRA: Document CEL over webhooks policy for AI agents #8478 bryan-cox/update-agents-on-webhook) added this file or added content at the same location, and git cannot auto-resolve which version to keep.

  2. control-plane-operator/controllers/openshiftmanager/input_resource_initializer_test.goadd/add conflict: Same as above for the corresponding test file.

  3. go.modcontent conflict: Both sides modified dependency declarations in go.mod at overlapping lines.

  4. go.sumcontent conflict: Consequent hash changes from the go.mod conflicts.

  5. vendor/modules.txtcontent conflict: Vendored module metadata diverged on both sides.

The recently-merged PR #8478 (Merge pull request #8478 from bryan-cox/update-agents-on-webhook) is the main HEAD commit. This PR likely introduced the input_resource_initializer.go file or modified it in a way that directly conflicts with the same file introduced by PR #7559. This is a straightforward merge conflict — the PR branch needs to be rebased onto the current main.

Recommendations
  1. Rebase PR API-1835: wires event handlers for informers #7559 onto current main: The PR author should run git fetch origin && git rebase origin/main and resolve the conflicts in the 5 affected files.

  2. Resolve the input_resource_initializer.go add/add conflict first: Since both sides added this file, the author needs to manually merge the content from the main version (from PR NO-JIRA: Document CEL over webhooks policy for AI agents #8478) with their PR's version. This is the most critical conflict.

  3. Re-vendor after resolving go.mod: After resolving go.mod conflicts, run go mod tidy && go mod vendor to regenerate go.sum and vendor/modules.txt cleanly rather than manually resolving those files.

  4. Push the rebased branch to trigger a new CI run — the security job will then be able to merge cleanly and actually execute the security scan.

Evidence
Evidence Detail
Failure phase Git merge (pre-CI, before any test or security scan ran)
Exit status exit status 1 from git merge --no-ff
Total runtime 0 seconds (no CI steps executed)
Final SHA Empty (merge never completed)
Conflicting files input_resource_initializer.go, input_resource_initializer_test.go, go.mod, go.sum, vendor/modules.txt
Conflict type (source files) add/add — both PR and main introduced the same files
Conflict type (dependency files) content — overlapping modifications to dependency metadata
PR commit 9b5be46cfecc182d5984cc4a18ea2fda836c68bd
Base (main) commit f16ca0d22941d58a170aaa4b1471b1456017c7c8
Last merged PR on main PR #8478 (bryan-cox/update-agents-on-webhook)

@openshift-ci

openshift-ci Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

Rotten PRs close after 7d of inactivity.

Reopen the PR by commenting /reopen.
Mark the PR as fresh by commenting /remove-lifecycle rotten.

/close

@openshift-ci openshift-ci Bot closed this May 19, 2026
@openshift-ci

openshift-ci Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

@openshift-ci[bot]: Closed this PR.

Details

In response to this:

Rotten PRs close after 7d of inactivity.

Reopen the PR by commenting /reopen.
Mark the PR as fresh by commenting /remove-lifecycle rotten.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/control-plane-operator Indicates the PR includes changes for the control plane operator - in an OCP release do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants